package com.sxt.controller;

import com.sxt.domain.SysUser;
import com.sxt.mapper.SysUserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @description:
 * @author: Mr.xx
 * @date: 2021/3/22 13:56
 */
@Controller
@RequestMapping("user")
public class TestController {

    @Autowired
    private SysUserDao sysUserDao;

    @ResponseBody
    @RequestMapping("find.do")
    public SysUser selectUser() {

        SysUser sysUser = sysUserDao.selectByNameAndPassword("admin", "");
        System.out.println("查询用户信息：" + sysUser);
        return sysUser;
    }
}
